package com.cn.service.UserService;

import com.cn.Mapper.userMapper.UserMapper;
import com.cn.util.SqlsesstionUtil;
import org.apache.ibatis.session.SqlSession;

/**
 * @ClassName DeleteUserService
 * @Description TODO
 * @Author yujiajing
 * @Date 2022/10/3 13:57
 * @Version 1.0
 */
public class DeleteUserService {
    public void  delete(String id){
        SqlSession sqlSession = SqlsesstionUtil.getSqlSession();
        UserMapper userMapper = sqlSession.getMapper(UserMapper.class);
        userMapper.deleteUser(id);

    }

}
